package com.bjsxt.fall;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.http.ResponseEntity;

public class RpcBlockHandlerConfig {

    public static ResponseEntity<String> rpcBlockHandler(String type , BlockException e){
        System.out.println("触发了某种规则，具体的异常为:"+e.getMessage());
        return ResponseEntity.ok("触发了某种规则") ;
    }
}
